import request from '@/utils/request'

const VISUAL_BASE_URL = '/visual-service/admin/system/visual'

export default{
    history(){
        return request({
            url: `${VISUAL_BASE_URL}/history`,
            method: 'get'
        })
    },
    riskArea(){
        return request({
            url:`${VISUAL_BASE_URL}/riskArea`,
            method:'get'
        })
    },
    infiniteNews(id){
        return request({
            url:`${VISUAL_BASE_URL}/infiniteNews`,
            method:'get',
            params:id
        })
    },
    vaccineTopData(){
        return request({
            url:`${VISUAL_BASE_URL}/vaccineTopData`,
            method:'get'
        })
    },
    rumor(offset){
        return request({
            url:`${VISUAL_BASE_URL}/rumor`,
            method:'get',
            params:offset
        })
    },
    chinaVaccineTrendData(){
        return request({
            url:`${VISUAL_BASE_URL}/chinaVaccineTrendData`,
            method:'get'
        })
    },
    getData(){
        return request({
            url:`${VISUAL_BASE_URL}/chinaData`,
            method:'get'
        })
    },
    getNews(){
        return request({
            url:`${VISUAL_BASE_URL}/news`,
            method:'get'
        })
    }
}